package helloController

import (
	"context"
	helloApi "dev-assistant-backend/api/hello"

	"github.com/gogf/gf/v2/frame/g"
)

type Controller struct{}

func (c *Controller) Hello(ctx context.Context, req *helloApi.HelloReq) (res *helloApi.HelloRes, err error) {
	g.Log().Line(true).Info(ctx, "hello", "req", req)
	g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
	g.Log().Line(true).Info(ctx, "hello success")
	return nil, nil
}
